package com.project.frba.bifront.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.project.frba.bifront.client.model.User;

public interface UserServicesAsync {
	
	public void login(String username, String password, AsyncCallback<String> callback);
	
	public void validateSessionId(String sessionId, AsyncCallback<Boolean> callback);

	public void logout(AsyncCallback<Boolean> callback);

	public void getUserByUsername(String username, AsyncCallback<User> callback);

	public void getUserById(Long id, AsyncCallback<User> callback);
	
	public void  getAllUsers(AsyncCallback<List<User>> callback);
	
	public void removeUser(Long id, AsyncCallback<Boolean> callback);
	
	public void storeUser(User user, AsyncCallback<Long> callback);

}
